package com.erclab.internal.xpresso.formelements;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.erclab.internal.xpresso.forms.Form;

public class TimeStamp extends Hidden {

	@Override
	public String[] processSubmittedValues(Form theForm, String[] submittedValues) {
		Date date = new Date();
		SimpleDateFormat formatter = new SimpleDateFormat(this.parameters);
		return new String[]{formatter.format(date)};
	}

	
	
}
